require 'socket'

server = Socket.new(:INET,:STREAM)
addr = Socket.pack_sockaddr_in(4481,'0.0.0.0')
server.bind(addr)
server.listen(128)

conn,_ = server.accept
conn.close_write()

conn.close_read()